<template>
  <div>666 {{ progress }}</div>
</template>

<script lang="ts">
import { defineComponent } from 'vue'
import type { Node } from '@antv/x6'

export default defineComponent({
  name: 'shape-param-point',
  inject: ['getNode'],
  data() {
    return {
      progress: 10
    }
  },
  expose: ['progress'],
  mounted() {
    const node = (this as any).getNode() as Node
    node.on('change:data', ({ current }) => {
      const { progress } = current
      this.progress = progress
    })
  }
})
</script>
